﻿using Authentication.Core.Configuration;
using Authentication.Model.Model;
using Common.Data.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Core.Data.DBConfig
{
    public class DepartmentSmeConfiguration: DBConfig<DepartmentSme>
    {
        public DepartmentSmeConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => new { k.DepartmentCode});

            //relationship
            //HasOptional(t => t.).WithMany(c => c.Accounts).HasForeignKey(t => new { t.ApplicationKey, t.GroupId }).WillCascadeOnDelete(false);
        }
    }
}
